/**
 * Description:一些注释<br/>
 * CreateTime:2019-04-03<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import cn.cnsy123.bookwebsiteserver.entity.SysUserPrivInfo;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-04-03<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
@Repository
public interface SysRolePrivInfoDao extends JpaRepository<SysUserPrivInfo, Long> {

    /**
     * Description:获取权限配置信息<br/>
     * CreateTime:2019-04-04<br/>
     * Creater: yangpengfei360@126.com <br/>
     * @author yangpengfei
     * @param roleId
     * @return
     */
    List<SysUserPrivInfo> findAllByRoleId(Long roleId);

    /**
     * Description:删除角色信息<br/>
     * CreateTime:2019-04-04<br/>
     * Creater: yangpengfei360@126.com <br/>
     * @author yangpengfei
     * @param roleId
     */
    void deleteByRoleId(Long roleId);
    
}
